package com.woniuxy.springbootrabbitconsumer.configuration;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: linKe
 * @Date: 2022/1/12 14:53
 * @FileName: MessageConverterConfig
 * @version: 1.0
 * @Description: 配置Json转换
 */
@Configuration
public class MessageConverterConfig {
    @Bean
    public MessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}
